﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NhanAi.Entity;
using NhanAi.DAO;
using System.IO;
namespace NhanAi
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("/Public/Index.aspx");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            UserDao dao = new UserDao();
            User u=new User();
            u = new User();
            u.UserLogin = "admin";
            u.UserPassword="123";
            u.Nicename = "abc";
            u.RegistedDate = DateTime.Now;
            u.Status = 1;
            u.UserRole = 1;
            u.ActivationKey = "";
            u.Email = "phucan.dev@gmail.com";
                //dao.Create(u);
                //Label1.Text = dao.ReadMany(20, 1, null, null, null, -1, -1).Count.ToString();
        }
    }
}